package com.study.chunguard.common.constant;

import cn.hutool.core.text.CharSequenceUtil;

/**
 * Redis 键工具
 *
 * @author zlt
 * @since 2018/7/27 13:50
 */
public class RedisKeyUtil {
    private RedisKeyUtil() {
        throw new IllegalStateException("Constant class");
    }

    /**
     * 生成单点登录授权码 redis 键
     *
     * @param code 单点登录授权码
     * @return 单点登录授权码 redis 键
     */
    public static String generateSsoCodeKey(String code) {
        return CharSequenceUtil.format(RedisKeyConstants.SSO_CODE_KEY, code);
    }
}
